<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>测试js内置函数</title>
</head>
<body>
<script type="text/javascript">
    // document.write(Math.random()*1000)
    // document.write(Math.random())
    // document.write(Math.random()*10)
    setInterval(function () {
        document.write(Math.random()*10|0)
    },1000);

</script>
</body>
</html>